package com.ls.controller.label;

import com.ls.controller.label.model.QueryLabelModel;
import com.ls.service.ILabelService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 标签表，与customer关联 前端控制器
 * </p>
 * 需要加一个标签表，用户和标签是一对多的关系
 * @author pengyu
 * @since 2024-11-20
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/label")
@Api(value = "标签", tags = "标签")
public class LabelController {
    private final ILabelService service;

    /** 标签 */
    @GetMapping(value = "pageList")
    public ResultData pageList(QueryLabelModel model) {
        return service.pageList(model);
    }
}
